﻿// -----------------------------------------------------------------------
// <copyright file="ActionMenu.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Ex04.Menus.Delegates
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    /// 
    public delegate void ActionFunctionDelegate();

    public class ActionMenu : MenuItem
    {
        public event ActionFunctionDelegate m_ActionPromptDelegate;

        public ActionMenu(string i_Title)
            : base(i_Title)
        {
        }

        public override void Invoke()
        {
            this.m_ActionPromptDelegate.Invoke();
        }
    }
}
